package com.cxf.config;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author:whh
 * @date: 2023-12-26 21:12
 * <p></p>
 */
@Component
public class SpringHook implements InitializingBean , DisposableBean {
    @Override
    public void destroy() throws Exception {
        System.out.println("destroy..........");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("init..........");
    }

}
